﻿namespace common
{
    public class add_factory
    {
        public add add
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public static add get_add(string type)
        {
            if (type == "sql")
            {
                return new add_sql();
            }
            else if (type == "tongxunlu")
            {
                return new add_tongxunlu();
            }
            else if (type == "c#")
            {
                return new add_cc();
            }
            else
            {
                return new add_txt();
            }
        }
    }
}